<?php

class Product_Form_Productform extends Zend_Dojo_Form
{

    public function init()
    {
        Zend_Dojo::enableForm($this);
	
	$this->setAttrib('id', 'productForm');
	
	$product_id = new Zend_Dojo_Form_Element_TextBox('product_id');
	
	
	$product_name = new Zend_Dojo_Form_Element_TextBox('product_name');
	$product_name->setLabel('product_name');
	
	$product_internalnumber = new Zend_Dojo_Form_Element_TextBox('product_internalnumber');
	$product_internalnumber->setLabel('product_internalnumber');
	
	$product_price =  new Zend_Dojo_Form_Element_CurrencyTextBox('product_price');
	$product_price->setLabel('product_price');
	$product_price->setCurrency('EUR');
	
	$is_webshop_article  = new Zend_Dojo_Form_Element_CheckBox('is_webshop_article ');
	$is_webshop_article->setLabel('iswebshoparticle');
	
	$supplier = new Zend_Dojo_Form_Element_TextBox('supplier');
	$supplier->setLabel('supplier');
	
	$product_submit = new Zend_Dojo_Form_Element_Button("product_submit");
	$product_submit->setLabel('absenden');
	$product_submit->setDijitParam('onClick', 'saveData');
	
//	$product_submit = new Zend_Form_Element_Submit("product_submit");
	
	$this->addElements(array(
	    $product_id,
	    $product_internalnumber,
	    $product_name,
	    $supplier,
	    $product_price,
	    $is_webshop_article,
	    $product_submit
	));
    }


}

